package com.city.justlisten.mapper;

import com.city.justlisten.entity.Singer;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 歌手
 * Created with IntelliJ IDEA.
 * User: Cheng
 * Date: 2021/1/28
 * Time: 20:17
 * Description: No Description
 */
@Repository
public interface SingerMapper {
    int addSinger(Singer singer);
    int deleteSinger(Integer id);
    int updateSinger(Singer singer);
    Singer selectOneSinger(Integer id);
    List<Singer> selectSinger();
    List<Singer> selectByNameSinger(String name);
    List<Singer> selectByPaginationSinger(Integer page,Integer limit);
    List<Singer> selectBySexSinger(Integer sex);
}
